#!/bin/bash

# 检查http-proxy-server是否已安装
if rpm -q http-proxy-server &>/dev/null; then
    echo "[-] 检测失败: http-proxy-server已安装"
    
    # 显示已安装的http-proxy-server相关包
    echo "    已安装的http-proxy-server相关包:"
    rpm -qa | grep http-proxy-server | sed 's/^/    /'
    
    exit 1
else
    echo "[+] 检测通过: http-proxy-server未安装"
    exit 0
fi

